package com.xhsj.user.hr.process.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhsj.user.hr.process.message.entity.TbProjectMessage;
import com.xhsj.user.pms.patent.query.TbProjectMessageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 项目消息 Mapper 接口
 * </p>
 *
 * @author suxiaolin
 * @since 2020-04-01
 */
@Mapper
public interface TbProjectMessageMapper extends BaseMapper<TbProjectMessage> {

    // 获取待发消息的列表
    List<TbProjectMessageQuery> getSendMessageList();

    /**
     * 给手机App查询消息
     * @author 苏小林
     * @date 2021/4/20 9:39
     * @param: userId
     * @param: startDate
     * @param: endDate
     * @return: java.util.List<java.lang.String>
     */
    List<Map<String,Object>> findAppMessage(@Param("userId") Long userId,
                                            @Param("startDate") LocalDateTime startDate,
                                            @Param("endDate") LocalDateTime endDate);
}
